public class Principal {

    // Exercise: https://university.thoughtworks.com/moodle/mod/assign/view.php?id=754

    public static void main(String[] args) {
        int numAsterisks = 3;

        for (int i = 0; i < numAsterisks; i++) {
            for (int z = 0; z <= i; z++) {
                System.out.print("*");
            }
            System.out.println("");
        }
    }
}
